package com.ruoyi.common.sql;

public class Having {
    private final Condition condition;

    private Having(Condition condition) {
        this.condition = condition;
    }

    public static Having of(Condition condition) {
        return new Having(condition);
    }

    public void build(StringBuilder sql) {
        sql.append(" HAVING ");
        condition.build(sql);
    }
}